package Model;
/**
 *
 * @author Selemani
 */

import java.util.ArrayList;
import java.util.Date;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;

/*
 * Scenario class represents movement script, which is executed by cameras
 */
@XmlRootElement(name="Scenario")
public class Scenario {
    private int scenarioId;
    private String alias;
    //Date of scenario creation
    private Date dateCreated;
    //List of points
    private ArrayList<Point> points;

    public Scenario() {
        points = new ArrayList<Point>();
    }

    @XmlAttribute(name="alias")
    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    @XmlAttribute(name="created")
    public Date getDateCreated() {
        return dateCreated;
    }

    public void setDateCreated(Date dateCreated) {
        this.dateCreated = dateCreated;
    }

    @XmlAttribute(name="id")
    public int getScenarioId() {
        return scenarioId;
    }
    
    public void setScenarioId(int scenarioId) {
        this.scenarioId = scenarioId;
    }

    public ArrayList<Point> getPoints() {
        return points;
    }

    public void setPoints(ArrayList<Point> points) {
        this.points = points;
    }

    /*
     * Meaningful string representation of the scenario
     */
    @Override
    public String toString() {
        return ""+dateCreated+":"+alias;
    }
}
